import request from '@/utils/http.js'

export const register = data => {
  return request.post('/register', data)
}
export const login = data => {
  return request.post('/login', data)
}
export const updatePhoto = data => {
  return request.post('/upload', data)
}
export const getProfile = data => {
  return request.get('/user/' + data)
}
export const updateProfile = (id, data) => {
  return request.post('/update/' + id, data)
}
